﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading.Tasks;

namespace Kiaser.Core
{
   public class ContextFactory
    {
       public static KiaserContext CurrentContext()
       {
           KiaserContext _kContext = CallContext.GetData("KiaserContext") as KiaserContext;
           if (_kContext == null)
           {
               _kContext = new KiaserContext();
               CallContext.SetData("KiaserContext", _kContext);
           }
           return _kContext;
       }
    }
}
